package cn.glutnn.entity;

import java.util.Date;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * (Messages)表实体类
 *
 * @author msh
 * @since 2024-12-27 13:06:42
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("messages")
public class Messages {

    @TableId
    private Integer id;

    //订单ID，指向订单表的ID
    private Integer orderId;
    //发送者ID，指向用户表或商家表的ID
    private Integer senderId;
    //接收者，指向用户表或商家表的ID
    private Integer receiverId;
    //留言内容，用户向商家或客服留言的信息
    private String message;
    //留言创建时间，默认为当前时间
    private Date createdTime;
    //0-未读 1-已读
    private Integer status;

}

